CREATE TABLE [dbo].[TTFORM_DOCU]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_FORM] [varchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[NO_FORM] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NU_FORM] [int] NULL CONSTRAINT [DF__TTFORM_DO__NU_FO__01C9240F] DEFAULT ((0)),
[NO_FIRM_0002] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NO_FIRM_0001] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CO_USUA_CREA] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL CONSTRAINT [DF__TTFORM_DO__CO_US__02BD4848] DEFAULT (suser_sname()),
[FE_USUA_CREA] [datetime] NULL CONSTRAINT [DF__TTFORM_DO__FE_US__03B16C81] DEFAULT (getdate()),
[CO_USUA_MODI] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL CONSTRAINT [DF__TTFORM_DO__CO_US__04A590BA] DEFAULT (suser_sname()),
[FE_USUA_MODI] [datetime] NULL CONSTRAINT [DF__TTFORM_DO__FE_US__0599B4F3] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTFORM_DOCU] ADD CONSTRAINT [PK__TTFORM_D__E8F1E8E1489B93AB] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_FORM]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTFORM_DOCU] ADD CONSTRAINT [FK__TTFORM_DO__CO_EM__5DEBB64C] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
